<template>
  <div>
    <el-dialog title="添加管理员" :visible.sync="addManageDialog" width="35%" @close="close">
      <el-form ref="form" :model="form" label-width="80px">
        <el-form-item label="角色">
          <el-select v-model="model" placeholder="请选择角色">
            <el-option
              v-for="item in roleOption"
              :key="item.id"
              :label="item.name"
              :value="item.id"
            >
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="登录名">
          <el-input placeholder="" style="width:70%"></el-input>
        </el-form-item>
        <el-form-item label="密码">
          <el-input placeholder="" style="width:70%"></el-input>
        </el-form-item>
        <el-form-item label="">
          <el-row :gutter="10">
            <el-button type="primary" size="mini">保存</el-button>
            <el-button size="mini" @click="close">取消</el-button>
          </el-row>
        </el-form-item>
      </el-form>
    </el-dialog>
  </div>
</template>

<script>
export default {
  props: {
    addManageDialog: {
      type: Boolean,
    },
  },
  data() {
    return {
      roleOption: [
        { id: 1, name: "超级管理员" },
        { id: 2, name: "管理员" },
        { id: 3, name: "仑传运营" },
      ],
    };
  },
  methods: {
    close() {
      this.$emit('update:addManageDialog',false)
    }
  }
};
</script>

<style scoped></style>
